import request from '@/utils/request'

// 增
export function saveComment(data) {
  return request({
    url: '/comment',
    method: 'put',
    data
  })
}

// 删
export function deleteComment(data) {
  return request({
    url: '/comment',
    method: 'delete',
    data
  })
}

// 改
export function updateComment(data) {
  return request({
    url: '/comment',
    method: 'post',
    data
  })
}

// 查
export function getComment(id) {
  return request({
    url: `/comment/${id}`,
    method: 'get'
  })
}

// 列表
export function getCommentList(data) {
  return request({
    url: '/commentList',
    method: 'post',
    data
  })
}

// vo列表
export function getCommentVoList(data) {
  return request({
    url: '/commentVoList',
    method: 'post',
    data
  })
}
